package org.szy.plugin.sys.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import org.szy.core.common.entity.BaseEntity;
import org.szy.core.common.listener.BaseInsertListener;
import org.szy.core.common.listener.BaseUpdateListener;

/**
 * 系统角色实体
 *
 * @author wangbuhao
 * @since 2023-06-26 20:06:27
 **/
@Table(value = "sys_role", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class)
public class SysRole extends BaseEntity {

    /** id */
    /**
     * 名称
     */
    private String name;
    /**
     * 编码
     */
    private String code;
    /**
     * 序号
     */
    private Integer sort;
    /**
     * 备注
     */
    private String remark;
    /**
     * 状态（1-启用、2-停用）
     */
    private Integer status;
    /**
     * 是否删除
     */
    @Column(isLogicDelete = true)
    private Integer delFlag;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

}
